﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

///NHDuc - ViewModel tin tuc
///Created date: 22/11/2013
namespace VietThuongLMS.ViewModels
{
    public class TinTucViewModel
    {
        public List<TinTuc> List { get; set; }
        public int Total { get; set; }
        public string TenLoaiTinTuc { get; set; }

        public TinTucViewModel()
        {
            this.List = new List<TinTuc>();
            this.Total = 0;
        }

        public TinTucViewModel(List<TinTuc> list, int total)
        {
            this.List = list;
            this.Total = total;
        }

        public TinTucViewModel(List<TinTuc> list, int total, string TenLoaiTinTuc)
        {
            this.List = list;
            this.Total = total;
            this.TenLoaiTinTuc = TenLoaiTinTuc;
        }
    }

    public class TinTucPageViewModel
    {
        public TinTucViewModel tintuc { get; set; }
        public TinTucViewModel tintucPoppular { get; set; }
        public TinTucViewModel tintucRecent { get; set; }
        public HinhAnhViewModel hinhAnhList { get; set; }
        public LoaiTinTucViewModel loaiTinTucList { get; set; }

        public TinTucPageViewModel()
        {
            tintuc = new TinTucViewModel();
            tintucPoppular = new TinTucViewModel();
            tintucRecent = new TinTucViewModel();
            hinhAnhList = new HinhAnhViewModel();
            loaiTinTucList = new LoaiTinTucViewModel();
        }

        public TinTucPageViewModel(TinTucViewModel tintuc, TinTucViewModel tintucPoppular, TinTucViewModel tintucRecent, HinhAnhViewModel hinhAnhList)
        {
            this.tintuc = tintuc;
            this.tintucPoppular = tintucPoppular;
            this.tintucRecent = tintucRecent;
            this.hinhAnhList = hinhAnhList;
        }

        public TinTucPageViewModel(TinTucViewModel tintuc, TinTucViewModel tintucPoppular, TinTucViewModel tintucRecent,
            HinhAnhViewModel hinhAnhList, LoaiTinTucViewModel loaiTinTucList)
        {
            this.tintuc = tintuc;
            this.tintucPoppular = tintucPoppular;
            this.tintucRecent = tintucRecent;
            this.hinhAnhList = hinhAnhList;
            this.loaiTinTucList = loaiTinTucList;
        }
    }
}